﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Data.SqlClient;
using System.Data.Sql;

namespace Bestlife.ERP.BusinessRules
{
public class userlogin
{
	public userlogin()
	{
		//
		// TODO: Add constructor logic here
		//
	}

    public static string user(Bestlife.ERP.Entities.Login user)
    {
        return Bestlife.ERP.DataAccess.Userlogin.getuser(user.User_Name1, user.Password1);
    
    }   //check user name and password
    public static Boolean upd_pw(Bestlife.ERP.Entities.Login user)
    {
        return Bestlife.ERP.DataAccess.Userlogin.upd_pw(user.User_Name1, user.Password1);
    
    }

    public static string pw(Bestlife.ERP.Entities.Login user)
    {
        return Bestlife.ERP.DataAccess.Userlogin.getpw(user.User_Name1);

    }  
}

}